package com.zhida.smartcontrol.pagectrl.projectdetail.search;

import androidx.annotation.Nullable;

import com.jay.tools.recycler.MultipleViewHolder;
import com.jay.tools.recycler.SingleRecyclerAdapter;
import com.zhida.smartcontrol.R;
import com.zhida.smartcontrol.pagectrl.projectdetail.warning.WarningBean;
import com.zhida.smartcontrol.pagehome.ProjectResultBean;

import java.util.List;

public class ProjectSearchAdapter extends SingleRecyclerAdapter<ProjectResultBean> {
    public ProjectSearchAdapter(@Nullable List<ProjectResultBean> data) {
        super(R.layout.item_project_search, data);
    }

    @Override
    protected void convert(MultipleViewHolder holder, ProjectResultBean info) {
        holder.setText(R.id.tv_name, info.getImei()).setText(R.id.tv_address, info.getAddress())
                .setText(R.id.tv_group, info.getGroupName()).setText(R.id.tv_type, info.getSwitchTypeTxt());
    }
}
